//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.zhihuishu.treenity.dto;

import com.zhihuishu.micro.course.openapi.course.dto.BaseDto;
import com.zhihuishu.micro.course.openapi.course.dto.CourseDataOpenDto;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 重写了 {@link com.zhihuishu.micro.bbs.openapi.onlineschool.dto.OnlinePostModelOpenDto}
 * 因为需要组装章讨论和章附件的关系  所以多了字段
 * List<CourseDataOpenDto> {@link #referList};章讨论附件列表
 *
 * 注意！！！
 * 当前该dto产生来源
 * 1.{@link com.zhihuishu.micro.bbs.openapi.onlineschool.IBBSOpenServiceForOverseaCreateCourse#findDiscussListByCourseIdAndChapterId(Integer, Integer)}
 * 产生的dto中{@link #dataIds}为空
 * 2.{@link com.zhihuishu.micro.bbs.openapi.onlineschool.IBBSOpenServiceForOverseaCreateCourse#findModelById(int)}
 * 产生的dto中{@link #dataIds}才不为空
 *
 *  {@link com.zhihuishu.micro.course.openapi.course.CourseDataOpenService#searcherCourseDataOpenLists(Set)}
 * 用来查询所有的附件，返回附件dto
 * @see CourseDataOpenDto
 *
 * @see com.zhihuishu.micro.bbs.openapi.onlineschool.dto.OnlinePostModelOpenDto
 * @see WebChapterDto
 */
public class WebDiscussionDto extends BaseDto {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private Integer courseId;
    private Integer chapterId;
    private String title;//章讨论标题
    private String content;//页面没有用到
    private Date createTime;//页面没有用到 创建时间
    private Long userId;//页面没有用到 创建人
    private Set<Integer> dataIds;//该讨论下的附件id列表
    private List<CourseDataOpenDto> referList;//该讨论下的附件明细列表

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Set<Integer> getDataIds() {
        return dataIds;
    }

    public void setDataIds(Set<Integer> dataIds) {
        this.dataIds = dataIds;
    }

    public List<CourseDataOpenDto> getReferList() {
        return referList;
    }

    public void setReferList(List<CourseDataOpenDto> referList) {
        this.referList = referList;
    }
}
